//
//  LLStatusButtonView.swift
//  WeiBoShiBing
//
//  Created by Bingo on 15/11/1.
//  Copyright © 2015年 Bingo. All rights reserved.
//

import UIKit
//cell底部三个按钮
class LLStatusButtonView: UIView {
    
    //MARK: - 构造函数
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override init(frame: CGRect) {
        
        super.init(frame: frame)
        
        backgroundColor = UIColor.whiteColor()
        
        prepareUI()
    }
    //准备UI
    private func prepareUI(){
        addSubview(forwardButton)
        addSubview(commentButton)
        addSubview(likeButton)
        addSubview(separatorViewOne)
        addSubview(separatorViewTwo)
        //添加约束
        ff_HorizontalTile([forwardButton,commentButton,likeButton], insets: UIEdgeInsetsZero)
        
        separatorViewOne.ff_AlignHorizontal(type: ff_AlignType.CenterRight, referView: forwardButton, size: nil)
        separatorViewTwo.ff_AlignHorizontal(type: ff_AlignType.CenterRight, referView: commentButton, size: nil)
    }
    
    private lazy var forwardButton:UIButton = UIButton(imageName: "timeline_icon_retweet", title: "转发", textColoc: UIColor.lightGrayColor(), fontSize: 15)
    
    private lazy var commentButton:UIButton = UIButton(imageName: "timeline_icon_comment", title: "评论", textColoc: UIColor.lightGrayColor(), fontSize: 15)
    
    private lazy var likeButton:UIButton = UIButton(imageName: "timeline_icon_like", title: "赞", textColoc: UIColor.lightGrayColor(), fontSize: 15)
    
    private lazy var separatorViewOne:UIImageView = UIImageView(image: (UIImage(named: "timeline_card_bottom_line_highlighted")))
    
    private lazy var separatorViewTwo:UIImageView = UIImageView(image: (UIImage(named: "timeline_card_bottom_line_highlighted")))
    
}
